/**
 * flex 规则
 */
export default {
    regExp: /^flex-(?<value>null|auto|none|(0|[1-9]\d*))$/,
    render({ groups }) {
        let { value, extName } = groups;
		if (value == 1) {
			value = '1 1 0%'
		}
		if (extName == 'nvue') {
			value = 1
		}
        return {
            name: 'flex',
            css: [`flex: ${value}`]
        }
    },
}
